<template>
	<view class="page" :style="{'--color': color}">
		<status-bar title='提现说明'></status-bar>
		<view class="rows bgwhite padding20-30">
			<u-parse :content="content" :domain="imgUrl"></u-parse>
		</view>

		<!-- 	<view class="inviteRule"  v-if='withdrawal_rules'>
		
			 <view class="content">
			 	<view class="list_sing size28" v-for="(r,i) in withdrawal_rules" :key='i' :class="{'empty': bid == 'E_8u7JY*nANQpujRplyvyw=='}">
		
					{{r}}
				</view>
			 </view>
		</view> -->
		<view @click="returnBtn" class="btn">
			<view class="return thmeBorder thmeColor">
				返回
			</view>
		</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex'
	export default {
		data() {
			return {
				imgUrl: this.imgUrl,
				withdrawal_rules: '',
				content: '',
			}
		},

		onLoad() {
			this.cashRecordDetail()
		},
		onShow() {
			this.withdrawal_rules = uni.getStorageSync('startUp').withdrawal_rules
			if (this.withdrawal_rules) {
				this.withdrawal_rules = this.withdrawal_rules.split('\n')
			}

		},
		methods: {
			cashRecordDetail() {
				this.$http.get({
					url: '/zzj_singleSaleApi/cashRecordDetail',
				}).then(res => {
					if (res.code != 200) return this.$Toast(res.msg)
					const result = res.data
					this.content = result.desc
				})
			},
			returnBtn() {
				uni.navigateBack({
					delta: 1
				})
			}
		},
		computed: {
			...mapState(['bid', 'color', 'vid', 'share']),
		},
		onShareAppMessage(option) {
			let shareData = this.share;
			return {
				title: shareData.title,
				desc: shareData.desc,
				path: '/pages/index/index?share_v_id=' + this.vid + '&pageType=99',
				imageUrl: shareData.imageUrl
			}
		},

	}
</script>

<style scoped lang="scss">
	.page {
		min-height: 100vh;
		background-color: #F8F8F8;
	}

	.inviteRule {
		background-color: #FFFFFF;
	}

	.empty {
		color: red !important;
	}

	.title {
		width: 100%;
		height: 100upx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-weight: bold;
		border-bottom: 1px solid #F2F2F2;
		color: #121212;
	}

	.content {
		padding: 0 20upx;
	}

	.content view {
		height: 100upx;
		display: flex;
		align-items: center;
		color: #AFAFAF;
	}

	.list_sing {
		border-bottom: 1px solid #F2F2F2;

		&:nth-last-of-type(1) {
			border: none;
		}
	}

	.btn {
		margin-top: 100upx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.return {
		width: 350upx;
		height: 72upx;
		border-radius: 5px;
		text-align: center;
		line-height: 72upx;
		font-size: 30upx;
	}
</style>